﻿@model ccgstore.WebApp.ViewModels.ViewThreadVm
@{
    ViewBag.Title = "ViewThread";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>View Thread</h2>

<div>
    @Model.Thread.Subject
    <span>Started by @Model.Thread.User.Username on @Model.Thread.CreateDt.Date</span>
</div>

@foreach (var post in Model.PostTree.GetOrderedList())
{
    <div>
        <span> @post.User.Name - @post.CreateDt </span>
        <br />
        @Html.Raw(post.Content)
    </div>
}